﻿@using store.cyt369.com.MODELS
@{
    IQueryable<store.cyt369.com.models.Store> stores = ViewBag.stores as IQueryable<store.cyt369.com.models.Store>;
    int page = ViewBag.page;
    int total = ViewBag.total;
    int totalPage = total / store.cyt369.com.utility.SystemSettingService.Instance.PageSize;
    int yusu = total % store.cyt369.com.utility.SystemSettingService.Instance.PageSize;
    if (yusu != 0)
    {
        totalPage++;
    }
}
<input type="hidden" id="currentPage" value="@(page)" />
<link rel="stylesheet" type="text/css" href="~/css/search.css">
<div class="transferMix">
    <div class="searchCheck">
        <div class="el-pagination mini-page">
            <slot>
                <button type="button" disabled="disabled" class="btn-next" onclick="beforepage()"><img style="width: 20px;height: 20px;" src="~/image/arrow-left-bold.png" onclick="beforepage()"></button>
                <span style="line-height: 20px;">@(page)/@totalPage</span>
                <button type="button" disabled="disabled" class="btn-next" onclick="nextpage()"><img style="width: 20px;height: 20px;" src="~/image/arrow-right-bold.png" onclick="nextpage()"></button>
            </slot>
        </div>
    </div>
    <ul class="transferContext">
        @if (stores != null && stores.Count()>0)
        {
            @foreach(var item in stores)
            {
                <li class="transferBox">
                    <div class="transferDetail">
                        <a href="">
                            <div class="transferImg">
                                <img src="~/image/storeimg/file_1600045848391df417d4979c4dafc9d6e17c97431e242.jpg" />
                            </div>
                        </a>
                        <div class="transferInfo">
                            <div class="transferText">
                                <a href="">
                                    <div style="margin-bottom: 20px;">
                                        <span class="txtTitle">@item.Name</span>
                                        <span class="txtLog">
                                            <img src="">
                                        </span>
                                    </div>
                                </a>
                                <div class="txtType">目前经营：@item.PresentOperation</div>
                                <div class="txtAddress">适合经营：@item.PresentOperation</div>
                                <div class="txtTime">
                                    <img class="margin-r5 relativeT1" src="">
                                    @item.CreateDate
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="transferData">
                        <div style="color: #ff6a00;" id="area" data-area="@item.Area">
                            <span class="fontSize28 fontBold tahomaFont"></span>
                            <span>平米</span>
                        </div>
                        <div style="margin: 5px 0;">
                            <span class="fontSize18 fontBold tahomaFont">@item.Rent</span>
                            <span>元/月</span>
                        </div>
                    </div>
                </li>
            }
        }
    </ul>
</div>